<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>轮回之牢: 显示一张测试图片，并缩放至需要的尺寸，不重复显示</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">轮回之牢<span id="projectnumber">&#160;0.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle"><div class="title">显示一张测试图片，并缩放至需要的尺寸，不重复显示</div></div>
</div><!--header-->
<div class="contents">
<p >由QOpenGLWidget调用，绘制图像 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">img_path</td><td>图片路径 </td></tr>
    <tr><td class="paramname">start_pos</td><td>起始位置，左下角为原点，坐标系为屏幕窗口坐标系 </td></tr>
    <tr><td class="paramname">width</td><td>图片经过重复拼接后需要的宽 </td></tr>
    <tr><td class="paramname">height</td><td>图片经过重复拼接后需要的高 </td></tr>
    <tr><td class="paramname">window_width</td><td>窗口实际宽度 </td></tr>
    <tr><td class="paramname">window_height</td><td>窗口实际高度 </td></tr>
    <tr><td class="paramname">img_width</td><td>单张图片所需宽度 此处自动缩放 如果传入-1，则自动取img_path下的图片宽度 </td></tr>
    <tr><td class="paramname">img_height</td><td>单张图片所需高度 </td></tr>
    <tr><td class="paramname">rotation_z</td><td>旋转角度 </td></tr>
    <tr><td class="paramname">rotation_y</td><td>沿二维平面纵轴向内旋转，会有遮挡 </td></tr>
    <tr><td class="paramname">rotation_x</td><td>沿二维平面横轴轴向内旋转，会有遮挡</td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line">textureInstance.drawImage(<span class="stringliteral">&quot;:Pictures/Test/openglTest.png&quot;</span>,</div>
<div class="line">                     <a id="_a0" name="_a0"></a><a class="code hl_class" href="class_point.html">Point</a>(0, 0),</div>
<div class="line">                     <span class="keywordtype">int</span>(object-&gt;getWidth()), <span class="keywordtype">int</span>(object-&gt;getHeight()),</div>
<div class="line">                     this-&gt;geometry().width(), this-&gt;geometry().height(),</div>
<div class="line">                     <span class="keywordtype">int</span>(object-&gt;getWidth()), <span class="keywordtype">int</span>(object-&gt;getHeight()), 0);</div>
<div class="ttc" id="aclass_point_html"><div class="ttname"><a href="class_point.html">Point</a></div><div class="ttdoc">二维点</div><div class="ttdef"><b>Definition:</b> Point.h:18</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2
</small></address>
</body>
</html>
